from . import socketio  # 导入从 __init__.py 初始化的 socketio 实例

@socketio.on('connect')
def handle_connect():
    print('Client connected')

@socketio.on('disconnect')
def handle_disconnect():
    print('Client disconnected')
